Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.poll.actions

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.poll.actions">

  <require>org.nuxeo.ecm.platform.preview.actions</require>
  <require>org.nuxeo.ecm.platform.comment.actions</require>
  <require>org.nuxeo.ecm.platform.notifications.web.actions</require>
  <require>org.nuxeo.ecm.platform.actions.relations.web</require>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">

    <action id="TAB_SURVEYS" link="/incl/tabs/polls_listing.xhtml" order="150"
      label="action.view.polls" icon="/icons/file.gif">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>display_polls_tab</filter-id>
      <filter-id>manage</filter-id>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">

    <filter id="display_polls_tab">
      <rule grant="true">
        <permission>Read</permission>
        <facet>SuperSpace</facet>
      </rule>
    </filter>

    <filter id="view_preview" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="denyFilesTab" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="rights" append="true">
      <rule grant="true">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="publish_document" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="commentable" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="view_relations" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="general_documents" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

    <filter id="manage_subscriptions" append="true">
      <rule grant="false">
        <type>Poll</type>
      </rule>
    </filter>

  </extension>

</component>